[index]

Pass Control Statement

Syntax

pass <message>

Description

The pass control statement is used to interrupt a message handler and pass the message that invoked the handler to the next object in the message-passing hierarchy. The pass control statement can be used in conjunction with the doMenu message to respond to certain navigational commands. For instance, if the user were on the last card of a stack and chose Last from the Navigation menu, normally nothing would happen. However, the command can be intercepted with a message that tells the user that the current card is the last card.

Examples

To try this, navigate to the last card of a stack and put the following into its script: on doMenu menuItem "This is the last card" else pass doMenu end doMenu
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.